﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web.Data
{
	/// <summary>
	/// Class for module state data object.
	/// </summary>
	public class ModuleDb : IdEntity
	{
		/// <summary>
		/// Gets or sets module name.
		/// </summary>
		public virtual string Name { get; set; }

		/// <summary>
		/// Gets or sets whether module is enabled.
		/// </summary>
		public virtual bool IsEnabled { get; set; }

		/// <summary>
		/// Initialies new instance.
		/// </summary>
		public ModuleDb()
		{
		}

		/// <summary>
		/// Initializes new enabled module.
		/// </summary>
		/// <param name="name">Module instance.</param>
		public ModuleDb(string name)
		{
			Name = name;
			IsEnabled = true;
		}
	}
}
